#if !defined(AFX_HARTHUGEAVERAGEDATAVIEW_H__10EE3EFB_0C6C_4251_8D35_72C93F636B2D__INCLUDED_)
#define AFX_HARTHUGEAVERAGEDATAVIEW_H__10EE3EFB_0C6C_4251_8D35_72C93F636B2D__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

//*******************************************************************************
// COPYRIGHT NOTES
// ---------------
// This is a sample for BCGControlBar Library Professional Edition
// Copyright (C) 1998-2016 BCGSoft Ltd.
// All rights reserved.
//
// This source code can be used, distributed or modified
// only under terms and conditions 
// of the accompanying license agreement.
//*******************************************************************************
//
// CChartHugeAverageDataView.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CChartHugeAverageDataView form view

#ifndef __AFXEXT_H__
#include <afxext.h>
#endif

#include "BCGPChartExampleDoc.h"
#include "BCGPChartExampleView.h"

#define MAX_SERIES 5

class CChartHugeAverageDataView : public CBCGPChartExampleView
{
protected:
	CChartHugeAverageDataView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CChartHugeAverageDataView)

// Form Data
public:
	//{{AFX_DATA(CChartHugeAverageDataView)
	enum { IDD = IDD_CHART_HUGE_AVERAGE_DATA };
	CBCGPButton	m_wndShowScrollBar;
	CBCGPStatic	m_wndSelectionLabel;
	CBCGPButton	m_wndZoom100;
	CBCGPComboBox	m_wndSelectionType;
	CBCGPComboBox	m_wndZoomType;
	CBCGPChartCtrl	m_wndChart;
	int		m_nDataPoints;
	BOOL	m_bZoom;
	int		m_nZoomType;
	int		m_nSelectionType;
	CString	m_strInfo;
	BOOL	m_bShowScrollBar;
	BOOL	m_bInteractiveMode;
	BOOL	m_bScatterMode;
	//}}AFX_DATA

// Attributes
public:
	virtual CBCGPChartVisualObject* GetChart()
	{
		return m_wndChart.GetChart();
	}

	virtual CBCGPBaseVisualCtrl* GetCtrl()
	{
		return &m_wndChart;
	}

	virtual BOOL IsAnimationAvailable() const
	{
		return FALSE;
	}

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CChartHugeAverageDataView)
	public:
	virtual void OnInitialUpdate();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);
	//}}AFX_VIRTUAL

	virtual void OnChangeBackgroundDarkness()
	{
		SetObjectColors();
	}

	void SetObjectColors();

// Implementation
protected:
	virtual ~CChartHugeAverageDataView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
	//{{AFX_MSG(CChartHugeAverageDataView)
	afx_msg void OnUpdateChart();
	afx_msg void OnUpdateZoom();
	afx_msg void OnZoom100();
	afx_msg void OnUpdateScrollBars();
	afx_msg void OnInteractiveMode();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	//}}AFX_MSG
	afx_msg LRESULT OnMouseTrack(WPARAM wp, LPARAM lp);
	afx_msg LRESULT OnAfterDraw(WPARAM wp, LPARAM lp);
	afx_msg LRESULT OnAfterRecalcLayout(WPARAM wp, LPARAM lp);
	DECLARE_MESSAGE_MAP()

protected:
	CBCGPPoint				m_ptValue;
	CBCGPChartTextObject*	m_pValueBox;
	CBCGPBrush				m_brValueBoxText;
	CBCGPBrush				m_brValueBoxFill;
	CBCGPBrush				m_brValueBoxBorder;
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_HARTHUGEAVERAGEDATAVIEW_H__10EE3EFB_0C6C_4251_8D35_72C93F636B2D__INCLUDED_)
